const path = require('path');
function resolve(dir) {
  return path.join(__dirname, dir);
}

module.exports = {
  resolve: {
    alias: {
      '@': resolve('src'),
      '@a': resolve('src/api'),
      '@c': resolve('src/common/components'),
      '@m': resolve('src/mixins'),
      '@p': resolve('src/plugins'),
      '@l': resolve('src/lib'),
      '@g': resolve('src/common'),
      '@js': resolve('src/common/js'),
    },
  },
};
